Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save tabs number in Url to persist tab when go to other paths #78

Merged
merged 4 commits into from
Nov 17, 2021
Merged

Save tabs number in Url to persist tab when go to other paths #78

merged 4 commits into from
Nov 17, 2021

Conversation

ff2400t
Copy link
Contributor

@ff2400t ff2400t commented Nov 15, 2021

Adds an Optional parameter to the library path to provide which tab to go to. It also replaces the Tab Number in the url when tab is changed.

Copy link
Contributor

@ntbm ntbm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to handle not existing tabs and tabs which aren't a number as well

Copy link
Member

@AriaMoradi AriaMoradi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things are broken:
1- URLs like http://127.0.0.1:3000/library?unread=1 don't work
2- When a filter is active, changing tabs clears all filters

Maybe handling tab number in query prams is a better solution?

@AriaMoradi AriaMoradi merged commit 0a89d22 into Suwayomi:master Nov 17, 2021
@AriaMoradi AriaMoradi mentioned this pull request Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants